#include "category.hpp"

Category::Category(const int id, const QString& name, const QString& desc, QObject *parent)
	:QObject(parent)
	,m_id(id)
	,m_name(name)
	,m_desc(desc)
{
}

int Category::categoryId() const {
	return m_id;
}

QString Category::name() const {
	return m_name;
}

QString Category::desc() const {
	return m_desc;
}

void Category::setName(const QString& newName) {
	m_name = newName;
}

void Category::setDesc(const QString& newDesc) {
	m_desc = newDesc;
}
